<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../base/base.jsp"%>
<html>
<head>
    <meta charset="utf-8" />
    <title>搜索结果</title>

    <link href="${ctx}/static/pro/style/style.css" rel="stylesheet" type="text/css" />
    <link href="${ctx}/static/pro/style/prodList.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="${ctx}/static/pro/js/public.js"></script>
    <script type="text/javascript" src="${ctx}/js/jquery-1.6.2.js"></script>
    <script type="text/javascript" src="${ctx}/static/pro/js/jqpublic.js"></script>
</head>
<body>
<form method="post" name="icform">
    <%--头--%>
    <jsp:include page="../base/head.jsp"></jsp:include>
    <!--Start content-->
    <section class="Psection">
        <section class="Fsl">
            <ul>
                <c:set var="num" value="0"></c:set>
                <c:forEach items="${productList}" var="productList" varStatus="status">
                        <li>
                            <a href="/toDetail?productId=${productList.productId}"  title="电影名"><img src="${ctx}${productList.pic}"></a>

                            <p>电影名：${productList.productName}</p>
                            <hr>
                            <p>观影价格:${productList.price}</p>
                            <hr>
                            <p>库存:${productList.buyCount}</p>
                            <p>
                                <span class="DSBUTTON" style="float: right"><a href="/toDetail?productId=${productList.productId}"  class="Fontfff">电影详情</a></span>
                            </p>
                        </li>
                </c:forEach>
            </ul>
                      <!--将买的最多的电影放到此处，两个既好-->
            <aside>
                <div class="title">热门电影</div>
                <c:forEach items="${HotProductList}" var="hotProductList" varStatus="status">
                    <div class="C-list">
                        <a href="/toDetail?productId=${hotProductList.productId}" title="电影名"><img src="${ctx}${hotProductList.pic}" width="100%" height="30%"></a>
                        <p><a href="/toDetail?productId=${hotProductList.productId}" >${hotProductList.productName}</a></p>
                        <p>
                            <span>价格：${hotProductList.price}</span>
                        </p>
                    </div>

                </c:forEach>
            </aside>
            <div class="TurnPage">
                <span class="Prev"><i></i>一共${pages.pages}页</span>
                <a href="searchByConditition?page=${pages.navigateFirstPage}&keyword=${keyword}">
                    <span class="Prev"><i></i>首页</span>
                </a>
<c:if test="${page.pageNum > 1}"><a href="searchByConditition?page=${pages.prePage}&keyword=${keyword}"><span class="PNumber">上一页</span></a></c:if>

                <c:if test="${page.pageNum != page.navigateLastPage}"><a href="searchByConditition?page=${pages.nextPage}&keyword=${keyword}"><span class="PNumber">下一页</span></a></c:if>
                <a href="searchByConditition?page=${pages.navigateLastPage}&keyword=${keyword}">
                    <span class="Next">最后一页<i></i></span>
                </a>
            </div>



        </section>
    </section>

    <%--头--%>
    <jsp:include page="../base/foot.jsp"></jsp:include>
    <!--End content-->
</form>
</body>

</html>
